#include <stdio.h>

void multi_arr_cp(int rows, int cols, int src[][cols], int target[][cols]);
void print_arr(int rows, int cols, int arr[][cols]);
int main(void)
{
	int src[3][2] = {{1, 2}, {3, 4}, {5, 6}};
	int target[3][2];

	print_arr(3, 2, src);
	multi_arr_cp(3, 2, src, target);
	print_arr(3, 2, target);

}
void multi_arr_cp(int rows, int cols, int src[][cols], int target[][cols])
{
	int i,j;
	
	for(i = 0; i < rows; i++)
	{
		for(j = 0; j < cols; j++)
		{
			target[i][j] = src[i][j];
		}
	}
}
void print_arr(int rows, int cols, int arr[][cols])
{
	int i,j;
	
	for(i = 0; i < rows; i++)
	{
		for(j = 0; j < cols; j++)
		{
			printf("%d ", arr[i][j]);
		}
		printf("\n");
	}
	
}

